package com.foo
/**
 * Created by tzp on 16-12-7.
 */
class Test22 {
    static void main(args) {
        println "this is groovy"
        def servers
        def serverList = ['127.0.0.1']
        if (servers?.trim()) {
            serverList = servers.split(',')
        }
        println serverList[0]
    }

    void hello(name) {
        println "hell $name"
    }

    def useJava() {
        def strings = new ArrayList<String>()
        strings.add("j")
        strings.add("a")
        strings.add("v")
        strings.add("a")

        return strings.join(",")
    }
}
